package persistence.service;

import model.User;
import persistence.exceptions.RepositoryException;

public interface UserPersistenceService {

	public Integer save(User user);

	public String getPosition(int id) throws RepositoryException;

	public User getPerson(int id, String op) throws RepositoryException;

	public int getMinMaxId(String op) throws RepositoryException;

	public int insertPerson(User p) throws RepositoryException;

	public void updatePerson(User p) throws RepositoryException;

	public void deletePerson(int id) throws RepositoryException;

	public User[] searchUser(String user) throws RepositoryException;
}
